Skip to content

Fix to releases on PyPI - #569

Merged
felixhekhorn merged 3 commits into
masterfrom
scarlehoff-patch-1
Sep 11, 2026
Merged

Fix to releases on PyPI#569
felixhekhorn merged 3 commits into
masterfrom
scarlehoff-patch-1

Conversation

@scarlehoff

@scarlehoff scarlehoff commented Sep 8, 2026

Copy link
Copy Markdown
Member

I thought the environment only needed to be defined in the settings, my bad.

Edit: but now I'm not sure how to do it with https://github.com/NNPDF/eko/blob/master/.github/workflows/python-poetry-pypi-with-data.yml tbh

@scarlehoff

Copy link
Copy Markdown
Member Author

As @AkshatRai07 suggested in #568 (comment) perhaps best to first try to see whether this works

@felixhekhorn felixhekhorn changed the title Fix to release pypi Fix to release on PyPI Sep 9, 2026
@felixhekhorn felixhekhorn added bug Something isn't working benchmarks Benchmark (or infrastructure) related labels Sep 9, 2026
@AkshatRai07

Copy link
Copy Markdown
Collaborator

best to first try to see whether this works

I thought it'd just require a change in some PyPI settings, but it did require an actual change to the files. Fortunately, we can run workflow again with providing a tag variable now after merging this PR, no need to wait for a tag push. I'll change the release-python.

@AkshatRai07

Copy link
Copy Markdown
Collaborator

@scarlehoff if I'm not wrong, release-ekors and release-python too require a fix like cd27bb7, right?

@scarlehoff

Copy link
Copy Markdown
Member Author

I thought it'd just require a change in some PyPI settings,

tbh, I could've also removed the environment there, but I liked the option of adding the environment best.

release-ekors and release-python too require a fix like cd27bb7, right?

Yes!

@felixhekhorn

Copy link
Copy Markdown
Collaborator

I thought it'd just require a change in some PyPI settings, but it did require an actual change to the files. Fortunately, we can run workflow again with providing a tag variable now after merging this PR, no need to wait for a tag push. I'll change the release-python.

good we can bring #561 to good use

release-ekors and release-python too require a fix like cd27bb7, right?

Yes!

Edit: but now I'm not sure how to do it with https://github.com/NNPDF/eko/blob/master/.github/workflows/python-poetry-pypi-with-data.yml tbh

just to make sure one is not relying on the other to act: @AkshatRai07 can you please take care?

@felixhekhorn

Copy link
Copy Markdown
Collaborator

Aaaha, it seems Github has already recorded the most relevant information for me. Here is more information:

  • step 2: ekore-rs worked: https://pypi.org/project/ekore-rs/ - but it has no description. @AkshatRai07 we can address that here or open a dedicated issue
  • step 1: eko failed, because the version was 0.0.0~something since this is what poetry-dynamic-versioning was determining. @AkshatRai07 should we just remove the possibility to specify a custom tag from that workflow? else we need a way to overwrite poetry-dynamic-versioning.
  • step 3: eko-rs failed with "400 Non-user identities cannot create new projects. This was probably caused by successfully using a pending publisher but specifying the project name incorrectly (either in the publisher or in your project's metadata). Please ensure that both match. See: https://docs.pypi.org/trusted-publishers/troubleshooting/" - which sounds like a problem in the config at PyPI @scarlehoff ?

only slightly related (and could have been part of #561 🙈 ): we should update some of the actions/* reusable workflows to a newer version, so we don't get warnings about Node deprecation. Again this can go easily into a separate issue.

On second thought ... fixing failing workflows is quite handy for debugging, but it is also quite dangerous, sine you can make up anything ... I'm no longer 100% convinced this is a good idea 🙈

@scarlehoff

Copy link
Copy Markdown
Member Author

which sounds like a problem in the config at PyPI @scarlehoff ?

Someone the trusted publisher is not there for eko-rs. I am convinced I added it as well but clearly no? Or maybe I added something wrong and it got destroyed on the failure?
In any case I've added it as well (pointing to release-ekors.yml, which I think is correct?)

On second thought ... fixing failing workflows is quite handy for debugging, but it is also quite dangerous, sine you can make up anything ... I'm no longer 100% convinced this is a good idea 🙈

What do you mean?

@felixhekhorn

Copy link
Copy Markdown
Collaborator

Someone the trusted publisher is not there for eko-rs. I am convinced I added it as well but clearly no? Or maybe I added something wrong and it got destroyed on the failure? In any case I've added it as well (pointing to release-ekors.yml, which I think is correct?)

It worked: https://pypi.org/project/eko-rs/

On second thought ... fixing failing workflows is quite handy for debugging, but it is also quite dangerous, sine you can make up anything ... I'm no longer 100% convinced this is a good idea 🙈

What do you mean?

it's a classic case of "with great power, comes great responsibility" 🕸️ e.g. here I could now "posthumously" release 0.15.6, which is sane since nothing happened since the true tag. But I could have also added a new feature (now or in the future) and could still call it "0.15.6" although this would be not correct. Should I worry or rely on "we are adults here"?

@felixhekhorn felixhekhorn changed the title Fix to release on PyPI Fix to releases on PyPI Sep 11, 2026
@felixhekhorn
felixhekhorn merged commit 62c6447 into master Sep 11, 2026
41 of 43 checks passed
@felixhekhorn
felixhekhorn deleted the scarlehoff-patch-1 branch September 11, 2026 12:00
@felixhekhorn

Copy link
Copy Markdown
Collaborator

@AkshatRai07 I was hesitant to label this as gsoc26 before since I was unsure about the timescale and I'm not sure if you worry about having (still) open PRs. Actually, on second thought, it could also be good as sign of active work to have open PRs ...

@scarlehoff

Copy link
Copy Markdown
Member Author

I see what you mean.
I guess protecting ourselves against our own mistales could be a good idea 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

benchmarks Benchmark (or infrastructure) related bug Something isn't working gsoc26

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants